/**
 * 自定义组件
 */
import DictRadio from './dict-radio';
import DictSelect from './dict-select';
import AreaPicker from './area-picker';
import ImportExcel from './import-excel';
import FileUpload from './file-upload';
import TemplateExport from './template-export';
import ServiceSelect from './service-select';

const components = {
  DictRadio,
  DictSelect,
  AreaPicker,
  ImportExcel,
  FileUpload,
  TemplateExport,
  ServiceSelect
};

components.install = function (Vue) {
  Object.keys(components).forEach(key => {
    key !== 'install' && Vue.component(components[key].name, components[key]);
  });
};

export {
  DictRadio,
  DictSelect,
  AreaPicker,
  ImportExcel,
  FileUpload,
  TemplateExport,
  ServiceSelect
};

export default components;